<?php 
session_start();
//this xml file used to store username of every user who login in our website.. as temporary database and it is to be used for flash (get manggo).

$stringData =  "<?xml version='1.0' encoding='UTF-8'?><main>";

$stringData .=   "<data>";
$stringData .= "<username>".$_SESSION[username]."</username>"; 
$stringData .= "</data>";

$stringData .=  " </main>";


$xmlfile = "username.xml";
$fh = fopen($xmlfile, 'w') or die("can't open file");

fwrite($fh, $stringData);
fclose($fh);




?>